package com.ihg.hiex.admin.service.account;

import java.util.List;

import com.demo2do.core.entity.page.Page;
import com.ihg.hiex.admin.service.DataService;
import com.ihg.hiex.entity.data.conference.ConferenceRoom;
import com.ihg.hiex.entity.user.Administrator;

/**
 *
 * @author Ark
 *
 */
public interface AdministratorService extends DataService<Administrator> {
    
    /**
     * @param role
     * @return
     */
    public int count(String role);
    
    /**
     * @param role
     * @return
     */
    public List<Administrator> list(String role);
    
    /**
     * @param role
     * @param page
     * @return
     */
    public List<Administrator> list(String role, Page page);
    
    /**
     * @param email
     * @param role
     * @return
     */
    public Administrator loadByEmail(String email, String role);

    /**
     * 
     * @param administrator
     * @param conferenceRoom
     */
    public void create(Administrator administrator, ConferenceRoom conferenceRoom);
    
    /**
     * 
     * @param administrator
     */
    public void edit(Administrator administrator);

    /**
     * 
     * @param administrator
     */
    public void disable(Administrator administrator);
    
}
